#ifndef _MODBUS_H
#define _MODBUS_H
#include "stm32l1xx_hal.h"
#define SRC_ADDR (*((uint16_t*)&reg8[1]))
#define ADC_VALE (*(uint16_t*)&reg8[3])
#define PLUSE_COUNT (*(uint16_t*)&reg8[5])
extern uint8_t  reg8[32];
void Uart1_Send_Data(uint8_t *pData,uint8_t len);
void Uart1_Data_Deal(void);
uint16_t Get_Crc16(uint8_t *CmmBuf, uint8_t Len);

#endif